Skip to content

fix(clipseg): fix 2 failing tests#45403

Open
kaixuanliu wants to merge 3 commits intohuggingface:mainfrom
kaixuanliu:fix-model-tests-clipseg-20260413
Open

fix(clipseg): fix 2 failing tests#45403
kaixuanliu wants to merge 3 commits intohuggingface:mainfrom
kaixuanliu:fix-model-tests-clipseg-20260413

Conversation

@kaixuanliu
Copy link
Copy Markdown
Contributor

No description provided.

Fixed 2 test(s):
- tests/models/clipseg/test_modeling_clipseg.py::CLIPSegModelTest::test_flash_attn_2_inference_equivalence
- tests/models/clipseg/test_modeling_clipseg.py::CLIPSegModelTest::test_flash_attn_2_inference_equivalence_right_padding
@kaixuanliu kaixuanliu changed the title fix(clipseg): auto-fix failing tests fix(clipseg): fix 2 failing tests Apr 14, 2026
@kaixuanliu kaixuanliu marked this pull request as ready for review April 14, 2026 02:54
@github-actions github-actions bot requested a review from ydshieh April 14, 2026 02:54
@kaixuanliu
Copy link
Copy Markdown
Contributor Author

kaixuanliu commented Apr 14, 2026

This PR tries to fix 2 failed test cases for clipseg model:

tests/models/clipseg/test_modeling_clipseg.py::CLIPSegModelTest::test_flash_attn_2_inference_equivalence
tests/models/clipseg/test_modeling_clipseg.py::CLIPSegModelTest::test_flash_attn_2_inference_equivalence_right_padding

Before this PR, it will fail with error: AttributeError: 'CLIPSegImageSegmentationOutput' object has no attribute 'logits_per_image'
@ydshieh pls help review. Thx!

Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant